import Vue from 'vue'
import Router from 'vue-router'
import homeIndex from '@/components/homeIndex'
import login from '@/components/login'
import register from '@/components/register'
import registerOut from '@/components/registerOut'
import searchPage from '@/components/searchPage'
import seckillPage from '@/components/seckillPage'
// import detailsPage from '@/components/detailsPage'
import taobaoListPage from '@/components/taobaoListPage'
import jingdongListPage from '@/components/jingdongListPage'
import pinduoduoListPage from '@/components/pinduoduoListPage'
import nineListPage from '@/components/nineListPage'
import homePage from "../components/homePage"
// import creatShare from "../components/creatShare"
import informationPage from "../components/informationPage"
import gamePage from "../components/gamePage"
import integralTopUp from "../components/game/integralTopUp"
import rechargeRecord from "../components/game/rechargeRecord"
import resultRecord from "../components/game/resultRecord"
import shareProPage from "../components/shareProPage"
import tianmaoPage from "../components/tianmaoPage"
import mallPage from "../components/mallPage"
import pinduoduoDetailPage from "../components/pinduoduoDetailPage"
import comfortableMoney from "../components/personalCenter/comfortableMoney"
import bankToken from "../components/personalCenter/bankToken"



Vue.use(Router)

export default new Router({
  mode:"hash",
  routes: [
    {
      path: '/',
      name: 'homePage',
      component: homePage
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/registerOut/:id',
      name: 'registerOut',
      component: registerOut
    },
    {
      path: '/shareProPage/:id',
      name: 'shareProPage',
      component: shareProPage
    },
    {
      path: '/tianmaoPage/:str',
      name: 'tianmaoPage',
      component: tianmaoPage
    },
    {
      path: '/mallPage/:id',
      name: 'mallPage',
      component: mallPage
    },
    {
      path: '/register',
      name: 'register',
      component: register
    },
    // {
    //   path: '/creatShare/:id',
    //   name: 'creatShare',
    //   component: creatShare
    // },  
    {
      path: '/gamePage',
      name: 'gamePage',
      component: gamePage
    },
    {
      path: '/informationPage',
      name: 'informationPage',
      component: informationPage
    },        
    {
      path: '/searchPage',
      name: 'searchPage',
      component: searchPage
    },
    {
      path: '/seckillPage',
      name: 'seckillPage',
      component: seckillPage
    },
    // {
    //   path: '/detailsPage/:id',
    //   name: 'detailsPage',
    //   component: detailsPage
    // },
     {
      path: '/pinduoduoDetailPage',
      name: 'pinduoduoDetailPage',
      component: pinduoduoDetailPage
    },
    {
      path: '/taobaoListPage',
      name: 'taobaoListPage',
      component: taobaoListPage
    },
    {
      path: '/jingdongListPage',
      name: 'jingdongListPage',
      component: jingdongListPage
    },
    {
      path: '/nineListPage',
      name: 'nineListPage',
      component: nineListPage
    },    
    {
      path: '/pinduoduoListPage',
      name: 'pinduoduoListPage',
      component: pinduoduoListPage
    },
    {
      path: '/personalCenter',
      name: 'personalCenter',
      component :() => import('../view/personalCenter')
    },
    {
      path: '/wztdetail',
      name: 'wztdetail',
      component :() => import('../components/personalCenter/wztdetail')
    },
    {
        path: '/transfer',
        name: 'transfer',
        component :() => import('../components/personalCenter/transfer')
      },
    {
      path: '/cashwallet',
      name: 'cashwallet',
      component :() => import('../components/personalCenter/cashwallet')
    },
    {
      path: '/contributionDetails',
      name: 'contributionDetails',
      component :() => import('../components/game/contributionDetails')
    },
    {
      path: '/plipay',
      name: 'plipay',
      component :() => import('../components/personalCenter/alipay')
    },
    {
      path: '/playbinding',
      name: 'playbinding',
      component :() => import('../components/personalCenter/playbinding')
    },
    {
      path: '/invitation',
      name: 'invitation',
      component :() => import('../components/personalCenter/Myinvitation')
    },
    {
      path: '/invitationruler',
      name: 'invitationruler',
      component :() => import('../components/personalCenter/inviratonruler')
    },
    {
      path: '/myorder',
      name: 'myorder',
      component :() => import('../components/personalCenter/myorder')
    },
    {
      path: '/Setting',
      name: 'Setting',
      component :() => import('../components/personalCenter/Stting')
    },
    {
      path: '/usernameflex/:str',
      name: 'usernameflex',
      component :() => import('../components/personalCenter/usernameflex')
    },
    {
      path: '/usergrade',
      name: 'usergrade',
      component :() => import('../components/personalCenter/usergrade')
    },
    {
      path: '/agentgrade',
      name: 'agentgrade',
      component :() => import('../components/personalCenter/agentgrade')
    },
    {
      path: '/newshou',
      name: 'newshou',
      component :() => import('../components/personalCenter/newshou')
    },
    {
      path: '/playGame',
      name: 'playGame',
      component :() => import('../view/gameindex')
    },
    {
      path: '/luckdraw/:type',
      name: 'luckdraw',
      component :() => import('../components/game/luckDraw')
    },
    {
      path: '/luckuser/:id',
      name: 'luckuser',
      component :() => import('../components/game/luckuser')
    },
    {
      path: '/luckruler',
      name: 'luckruler',
      component :() => import('../components/game/gameruler')
    },
    {
      path: '/blockdetail',
      name: 'blockdetail',
      component :() => import('../components/game/blockdetail')
    },
    {
      path: '/sherch',
      name: 'sherch',
      component :() => import('../components/searchPage')
    },
    // {
    //   path: '/detailsPage',
    //   name: 'detailsPage',
    //   component :() => import('../components/detailsPage')
    // },
    {
      path: '/seckillPage',
      name: 'seckillPage',
      component :() => import('../components/seckillPage')
    },
    {
      path: '/sharePage',
      name: 'sharePage',
      component :() => import('../components/public/sharePage')
    },
    //赚钱方法文档    
    {
      path: '/comfortableMoney',
      name: 'comfortableMoney',
      component: comfortableMoney
    },
    {
      path: '/bankToken',
      name: 'bankToken',
      component: bankToken
    },
    {
      path: '/integralTopUp',
      name: 'integralTopUp',
      component: integralTopUp
    },
    {
      path: '/rechargeRecord',
      name: 'rechargeRecord',
      component: rechargeRecord
    },
    {
      path: '/resultRecord',
      name: 'resultRecord',
      component: resultRecord
    },
    
  ]
})
